﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbChangedEntryTest and is intended
    ///     to contain all TmdbChangedEntryTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbChangedEntryTest
    {
        /// <summary>
        ///     A test for TmdbChangedEntry Constructor
        /// </summary>
        [TestMethod]
        public void TmdbChangedEntryConstructorTest()
        {
            var target = new TmdbChangedEntry();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Id
        /// </summary>
        [TestMethod]
        public void IdTest()
        {
            var target = new TmdbChangedEntry();
            int expected = new Random().Next( 0, Int32.MaxValue );
            target.Id = expected;
            int actual = target.Id;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for IsAdult
        /// </summary>
        [TestMethod]
        public void IsAdultTest()
        {
            var target = new TmdbChangedEntry();
            var expected = new Random().Next( 0, Int32.MaxValue ) % 2 == 0;
            target.IsAdult = expected;
            var actual = target.IsAdult;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}